import React from 'react';

class MainRules extends React.Component {
    constructor(props) {
        super(props);
        this.displayName = 'MainRules';
        this.state = {
            page: "MainRules"
        }
    }

    fetchingData(  ) {

        ajax.get(`api/videos/get/`)
            .end((error, response) => {
                if( !error && response ) {
                    let data = response.body;

                    this.setState({
                        page: data
                    })

                } else {
                    console.error(`Error fetching ${name} `, error);
             }
        });
    }

    componentWillMount() {
        // fetchingData();
    }

    render() {
        return (
            <section className="rules">
                {this.state.page}
            </section>
        );
    }
}

export default MainRules;
